home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000378_rgibbens@redskytech.com_Wed Sep 18 14:05:33 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  1KB  |  35 lines

  1. Article: 13712 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!solaris.cc.vt.edu!news.vt.edu!msunews!not-for-mail
  3. From: "Robert Gibbens" <rgibbens@redskytech.com>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Multiple line IF statement?
  6. Date: Wed, 18 Sep 2002 13:37:24 -0400
  7. Organization: Michigan State University
  8. Lines: 19
  9. Message-ID: <amadkm$8bh$1@msunews.cl.msu.edu>
  10. NNTP-Posting-Host: 208.48.6.2
  11. X-AUTHid: gibbensr
  12. X-Priority: 3
  13. X-MSMail-Priority: Normal
  14. X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
  15. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13712
  17.  
  18. Is it possible in C-Kermit (Kermit 95, Win2k), to do multiple line IF
  19. statements?
  20.  
  21. For example, if I encounter a failure, I would like to write the failure to
  22. my log file and then exit.  When I try this....
  23.  
  24.             if > \%a \%b -
  25.                  WRITE File \v(exitstatus) \v(date) \v(time) \%s FAILED
  26. after \%a tries, end 1
  27.  
  28.  
  29. ....it simply writes the whole line to the log file and then continues
  30. running the script.  I would like the "end 1" to execute also
  31.  
  32. Thanks,
  33.     Rob Gibbens
  34.     rgibbens@redskytech.NOSPAM.com
  35.